package com.fuqi.android.zhongcai.business.shuig;

import static com.fuqi.android.zhongcai.business.shuig.OrderDict.StatusType.DDZT_AZWC;
import static com.fuqi.android.zhongcai.business.shuig.OrderDict.StatusType.DDZT_AZZ;
import static com.fuqi.android.zhongcai.business.shuig.OrderDict.StatusType.DDZT_BKAZ;
import static com.fuqi.android.zhongcai.business.shuig.OrderDict.StatusType.DDZT_BTG;
import static com.fuqi.android.zhongcai.business.shuig.OrderDict.StatusType.DDZT_DAZ;
import static com.fuqi.android.zhongcai.business.shuig.OrderDict.StatusType.DDZT_DCF;
import static com.fuqi.android.zhongcai.business.shuig.OrderDict.StatusType.DDZT_DCL;
import static com.fuqi.android.zhongcai.business.shuig.OrderDict.StatusType.DDZT_DSZ;
import static com.fuqi.android.zhongcai.business.shuig.OrderDict.StatusType.DDZT_KHWFLX;
import static com.fuqi.android.zhongcai.business.shuig.OrderDict.StatusType.DDZT_YCC;
import static com.fuqi.android.zhongcai.business.shuig.OrderDict.StatusType.DDZT_YHF;
import static com.fuqi.android.zhongcai.business.shuig.OrderDict.StatusType.DDZT_YPL;

/**
 * Created by Bruce on 2016/10/19.
 */
public class OrderDict {

    public static String getNameByStatus(String type){
        String rlt = "";
        switch (type) {
            case DDZT_DSZ:
                rlt = "待审中";
                break;
            case DDZT_BTG:
                rlt = "不通过";
                break;
            case DDZT_DCL:
                rlt = "待处理";
                break;
            case DDZT_KHWFLX:
                rlt = "客户无法联系";
                break;
            case DDZT_DCF:
                rlt = "待出发";
                break;
            case DDZT_DAZ:
                rlt = "待安装";
                break;
            case DDZT_AZZ:
                rlt = "安装中";
                break;
            case DDZT_BKAZ:
                rlt = "不可安装";
                break;
            case DDZT_AZWC:
                rlt = "安装完成";
                break;
            case DDZT_YHF:
                rlt = "已回访";
                break;
            case DDZT_YCC:
                rlt = "已抽查";
                break;
            case DDZT_YPL:
                rlt = "已评论";
                break;
        }
        return rlt;
    }

    /**
     * 订单状态
     */
    public final static class StatusType {
        /** 待审中 */
        public static final String DDZT_DSZ = "DDZT_DSZ";
        /** 不通过 */
        public static final String DDZT_BTG = "DDZT_BTG";
        /** 待处理 */
        public static final String DDZT_DCL = "DDZT_DCL";
        /** 待出发 */
        public static final String DDZT_DCF = "DDZT_DCF";
        /** 待安装 */
        public static final String DDZT_DAZ = "DDZT_DAZ";
        /** 安装中 */
        public static final String DDZT_AZZ = "DDZT_AZZ";
        /** 不可安装 */
        public static final String DDZT_BKAZ = "DDZT_BKAZ";
        /** 安装完成 */
        public static final String DDZT_AZWC = "DDZT_AZWC";
        /** 待回访 */
        public static final String DDZT_DHF = "DDZT_DHF";
        /** 已回访 */
        public static final String DDZT_YHF = "DDZT_YHF";
        /** 已抽查 */
        public static final String DDZT_YCC = "DDZT_YCC";
        /** 已评论 */
        public static final String DDZT_YPL = "DDZT_YPL";
        /** 客户无法联系 */
        public static final String DDZT_KHWFLX = "DDZT_KHWFLX";
    }

    /**
     * 角色编码数据字典
     */
    public final static class RoleType {
        /** 内勤 */
        public static final String TYPE_NQ = "NQ";
        /** 施工队长 */
        public static final String TYPE_SGDZ = "SGDZ";
        /** 监察员 */
        public static final String TYPE_JCY = "JCY";
        /** 施工工人 */
        public static final String TYPE_SGGR = "SGGR";
        /** 个人客户 */
        public static final String TYPE_GRKH = "GRKH";
        /** 管理员*/
        public static final String TYPE_GLY = "GLY";

    }

    /**
     * 大类订单状态（不同角色需要的不一样）
     */
    public final static class StatusRoleType {
        /** 待审核 */
        public static final String DLDDZT_DLDSH = "DLDDZT_DLDSH";
        /** 待处理 */
        public static final String DLDDZT_DLDCL = "DLDDZT_DLDCL";
        /** 待安装 */
        public static final String DLDDZT_DLDAZ = "DLDDZT_DLDAZ";
        /** 已完成 */
        public static final String DLDDZT_DLYWC = "DLDDZT_DLYWC";
        /** 待抽查 */
        public static final String DLDDZT_DLDCC = "DLDDZT_DLDCC";
        /** 已抽查 */
        public static final String DLDDZT_DLYCC = "DLDDZT_DLYCC";
    }


    /**
     * 页面内的功能按钮类型
     */
    public final static class ActionType {
        /** 驳回 */
        public static final String ACTION_BH = "驳回";
        /** 通过并派单 */
        public static final String ACTION_TGPD = "通过并派单";
        /** 审核中 */
        public static final String ACTION_SHZ = "审核中";
        /** 重新下单 */
        public static final String ACTION_CXXD = "重新下单";
        /** 无法联系 */
        public static final String ACTION_WFLX = "无法联系";
        /** 确认接单 */
        public static final String ACTION_QRJD = "确认接单";
        /** 立即出发 */
        public static final String ACTION_LJCF = "立即出发";
        /** 不可安装 */
        public static final String ACTION_BKAZ = "不可安装";
        /** 开始安装 */
        public static final String ACTION_KSAZ = "开始安装";
        /** 安装完成 */
        public static final String ACTION_AZWC = "安装完成";
        /** 立即评论 */
        public static final String ACTION_LJPL = "立即评论";
        /** 业主回访 */
        public static final String ACTION_YZHF = "业主回访";
        /** 监理抽查 */
        public static final String ACTION_JLCC = "监理抽查";
    }

    /**
     * 页面内的菜单选项
     */
    public final static class MenuType {
        /**
         * 查看订单图片
         */
        public static final String MENU_CKTP = "查看订单图片";
        /**
         * 查看回访
         */
        public static final String MENU_CKHF = "查看回访";
        /**
         * 查看抽查
         */
        public static final String MENU_CKCC = "查看抽查";
        /**
         * 查看评论
         */
        public static final String MENU_CKPL = "查看评论";
    }

    /**
     * 安装内容
     */
    public final static class AnZType {
        /**
         * 安装
         */
        public static final String TYPE_AZ = "AZNR_AZ";
        /**
         * 改装
         */
        public static final String TYPE_GZ = "AZNR_GZ";
        /**
         * 加装
         */
        public static final String TYPE_JZ = "AZNR_JZ";
        /**
         * 返工
         */
        public static final String TYPE_FG = "AZNR_FG";
        /**
         * 检修
         */
        public static final String TYPE_JX = "AZNR_JX";
        /**
         * 空跑
         */
        public static final String TYPE_KP2 = "AZNR_KP2";
    }

    /**
     * 结款方式
     */
    public final static class PayType {
        /**
         * 现场收取
         */
        public static final String TYPE_XCSQ = "SKFS_XCSQ";
        /**
         * 代收
         */
        public static final String TYPE_DS = "SKFS_DS";
        /**
         * 月结
         */
        public static final String TYPE_YJ2 = "SKFS_YJ2";
    }

    // 数据字典
    public final static class DNSYType {
        /**
         * 管道规格
         */
        public static final String SJ_DNGDGG   = "GDGG";
        /**
         * 不可安装原因
         */
        public static final String SJ_BKAZYY   = "BKAZYY";
        /**
         * 安装内容
         */
        public static final String SJ_AZNR   = "AZNR";
        /**
         * 收款方式
         */
        public static final String SJ_SKFS   = "SKFS";
        /**
         * 地暖安装监查问题
         */
        public static final String SJ_JLWTCC_DN   = "JLWTCC_DN";
        /**
         * 水管安装监查问题
         */
        public static final String SJ_JLWTCC_SG   = "JLWTCC_SG";
    }


   /* public enum Colors {
        Red(1, "红色"), Green(2, "绿色"), Blue(3, "蓝色");

        private int _value;
        public String _name;

        private Colors(int value, String name) {
            _value = value;
            _name = name;
        }

    }*/
}
